// Knife Fire //

class KnifeFireNew extends SRMeleeFire;

var() array<name> FireAnims;
var name LastFireAnim;


function PlayFiring()
{
     Super.PlayFiring();
}

simulated event ModeDoFire()
{
     local int AnimToPlay;

     if(FireAnims.length > 0)
     {

         AnimToPlay = rand(FireAnims.length);

          LastFireAnim = FireAnim;
          FireAnim = FireAnims[AnimToPlay];

          if( LastFireAnim == FireAnims[1] && FireAnim == FireAnims[2]
			|| LastFireAnim == FireAnims[2] && FireAnim == FireAnims[1]
			|| LastFireAnim == FireAnims[2] && FireAnim == FireAnims[2] )
            FireAnim = FireAnims[0];

     }

	Super(SRMeleeFire).ModeDoFire();
}

defaultproperties
{
	DamTypeInfiltrator = Class'DamTypeKnifeColdSteel'
	InvisExpence = 0.5;
    FireAnims(0)="Fire"
    FireAnims(1)="Fire2"
    FireAnims(2)="fire3"
    FireAnims(3)="Fire4"
    damageConst=14
    DamagedelayMin=0.450000
    DamagedelayMax=0.450000
    hitDamageClass=Class'KFMod.DamTypeKnife'
    MeleeHitSounds(0)=SoundGroup'KF_KnifeSnd.Knife_HitFlesh'
    HitEffectClass=Class'KFMod.KnifeHitEffect'
    FireRate=0.600000
    BotRefireRate=0.300000
}
